package com.ruoyi.tcm.mapper;

import java.util.List;
import com.ruoyi.tcm.domain.TcmAnnouncement;
import org.apache.ibatis.annotations.Mapper;

/**
 * 公告Mapper接口
 * 
 * @author cong
 * @date 2025-02-07
 */
@Mapper
public interface TcmAnnouncementMapper 
{
    /**
     * 查询公告
     * 
     * @param id 公告主键
     * @return 公告
     */
    public TcmAnnouncement selectTcmAnnouncementById(Long id);

    /**
     * 查询公告列表
     * 
     * @param tcmAnnouncement 公告
     * @return 公告集合
     */
    public List<TcmAnnouncement> selectTcmAnnouncementList(TcmAnnouncement tcmAnnouncement);

    /**
     * 新增公告
     * 
     * @param tcmAnnouncement 公告
     * @return 结果
     */
    public int insertTcmAnnouncement(TcmAnnouncement tcmAnnouncement);

    /**
     * 修改公告
     * 
     * @param tcmAnnouncement 公告
     * @return 结果
     */
    public int updateTcmAnnouncement(TcmAnnouncement tcmAnnouncement);

    /**
     * 删除公告
     * 
     * @param id 公告主键
     * @return 结果
     */
    public int deleteTcmAnnouncementById(Long id);

    /**
     * 批量删除公告
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTcmAnnouncementByIds(Long[] ids);
}
